# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=File-Copy-Recursive
pkgname=perl-${_realname}
pkgver=0.38
pkgrel=2
pkgdesc="extension for recursively copying files and directories"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
url='http://search.cpan.org/dist/File-Copy-Recursive'
groups=('perl-modules')
source=("http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/${_realname}-${pkgver}.tar.gz")
md5sums=('e76dc75ab456510d67c6c3a95183f72f')

build() {
  cd "$srcdir/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/${_realname}-${pkgver}"
  make test
}

package() {
  cd "$srcdir/${_realname}-${pkgver}"
  make DESTDIR="$pkgdir" install
}
